from appium.webdriver.common.appiumby import AppiumBy

from base.keywords import Keywords
from locator.login_locator import skip


class HomePage(Keywords):
    SCHOOL_TAB = (AppiumBy.ID,'com.tal.kaoyan:id/main_button_school')
    Course_Tab = (AppiumBy.ID,'com.tal.kaoyan:id/main_button_course')

    #跳过
    def skip(self):
        self.click_element(skip)

    #点击底部导航栏找院校
    def click_school_tab(self):
        self.click_element(self.SCHOOL_TAB)

    #点击底部导航栏找课程
    def click_course_tab(self):
        self.click_element(self.Course_Tab)